<template>
   
    <div>
        <h1>演示跳转路由并接收params参数</h1>
        <ul>
            <li>新闻编号:{{newsId}}</li>
            <li>新闻标题:{{newsName}}</li>
        </ul>
    </div>
   
</template>

<script>
    export default {
        name:'Flow',
        props:['newsId','newsName'],
        mounted() {
            console.log(this.$route);
        },
    }
</script>

<style>

</style>